package com.wanxi.demo;

/**
 * 逢七跳过
 */
public class SkipEverySeven {
    public static void main(String[] args) {
        int count=0;
        for (int i = 1; i <= 100; i++) {
//            各位是7 i % 10 == 7
//            7的倍数 i / 7 == 0
            if (i % 10 == 7 || i % 7 == 0 || i / 10 % 7 == 0) {
                System.out.println("过" + i);
                count++;
            }
        }
        System.out.println(count);
    }
}
